Page({

  data: {
    AnnouncementDetail:null
  },
  //获取公告详情
  onLoad({id}) {
    this.getAnnouncementDetail(id)
  },
  //获取公告详情
  async getAnnouncementDetail(id){
    let res=await wx.http({
      url:`/announcement/${id}`
    })
    this.setData({
      AnnouncementDetail:res.data
    })
  }
})